settings object
This method will check to see if a particular value exists in your game's store in the Windows registry.
bool exists(string value_name)
Parameters:
value_name
The name of the value to look for.
Return value:
true if the value was found, false if it was not or if an error occured.
Remarks:
None.
Example:
// Delete our music_volume value from the registry if it exists.
void main()
{
settings game_data;
bool success=game_data.setup("Testtime Interactive", "Bonebreaker", false);
if(!success)
{
alert("Error", "Could not access the registry.");
exit();
}
if(!game_data.exists("music_volume"))
{
alert("Error", "Could not delete music_volume. The specified value does not exist.");
exit();
}
success=game_data.remove_value("music_volume");
if(!success)
{
alert("Error", "Could not delete music_volume.");
exit();
}
}